import request from "@/utils/request";

//查询列表
export function InnerallotList(params) {
  return request({
    url: "/mes/Innerallot/info/list",
    method: "get",
    params,
  });
}

//新增
export function addInnerallot(data) {
  return request({
    url: "/mes/Innerallot/info",
    method: "post",
    data,
  });
}

//修改
export function updateInnerallot(data) {
  return request({
    url: "/mes/Innerallot/info",
    method: "put",
    data,
  });
}

// 查询详情
export function getIdInnerallot(id) {
  return request({
    url: `/mes/Innerallot/info/${id}`,
    method: "get",
  });
}

// 删除
export function delInnerallot(ids) {
  return request({
    url: "/mes/Innerallot/info/" + ids,
    method: "delete",
  });
}
//导出
export function exportInnerallot(data) {
  return request({
    url: "/mes/Innerallot/info/export",
    method: "post",
    data,
  });
}

//明细查询
export function InnerallotDetailList(data) {
  return request({
    url: "/mes/Innerallot/info/Detail",
    method: "post",
    data,
  });
}

// 选择机台纸张
export function Machinelist(data) {
  return request({
    url: "/mes/paper/machinelist",
    method: "post",
    data,
  });
}
